package com.lovo.ssc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户的收货地址表
 * </p>
 *
 * @author lovo
 * @since 2022-07-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_address")
@ApiModel("收货地址实体")
public class AddressBean extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 收货地址编号
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Integer addressId;

    /**
     * 收货人
     */
    @ApiModelProperty(value = "收货人")
    private String receiver;

    /**
     * 所在地区
     */
    @ApiModelProperty(value = "所在地区")
    private String area;

    /**
     * 详细地址
     */
    @TableField("fullAddress")
    @ApiModelProperty(value = "详细地址")
    private String fullAddress;

    /**
     * 收货人电话
     */
    @ApiModelProperty(value = "收货人电话")
    private String tel;

    /**
     * 是否默认收货地址
     0--不是默认收货地址
     1--默认收货地址
     */
    @TableField("defaultAddress")
    @ApiModelProperty(hidden = true)
    private String defaultAddress;

    /**
     * 外键，用户编号
     */
    @TableField("userId")
    private Integer userId;


}
